<template>
  <a-form-model :label-col="labelCol" :wrapper-col="wrapperCol">
    <a-form-model-item :label="item.name" v-for="(item,index) in list" :key="index">
      <span class="text">{{ item.value }}</span> 
    </a-form-model-item>
  </a-form-model>
</template>

<script>
export default {
  name:'resTable',
  data() {
    return {
      labelCol: { span: 8 },
      wrapperCol: { span: 16 },
    }
  },
  props:{
    list:{
      type: Array,
      default: () => [{name:'名称阿萨',value:'chen'}],
    }
  }
}
</script>

<style lang="less" scoped>
.text{
  word-break: break-all;
}
</style>
